﻿* Encoding: UTF-8.

 
 RECODE
 partyidw1
  (1=1) (2=2) (3=3) (4 thru 9=4) (10=5) (9999=5) (else=99) INTO pidw1.
VARIABLE LABELS pidw1 'PID'.
VALUE LABELS pidw1 (1)Conservative (2)Labour (3)Liberal (4)Other (5)None (99)Missing.
EXECUTE .

RECODE
 pidwetheyw1
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw1a.
VARIABLE LABELS pidw1a 'PID - we versus they '.
VALUE LABELS pidw1a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcriticisepartyw1
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw1b.
VARIABLE LABELS pidw1b 'PID - criticism '.
VALUE LABELS pidw1b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcommonpartyw1
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw1c.
VARIABLE LABELS pidw1c 'PID - lot in common '.
VALUE LABELS pidw1c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidconnectedw1
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw1d.
VARIABLE LABELS pidw1d 'PID - connected'.
VALUE LABELS pidw1d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidpraisegoodw1
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw1e.
VARIABLE LABELS pidw1e 'PID - praise'.
VALUE LABELS pidw1e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE pidallw1=99.
EXECUTE.
DO IF pidw1a<99.
COMPUTE pidallw1 = (pidw1a+pidw1b+pidw1c+pidw1d+pidw1e)/5.
VARIABLE LABELS pidallw1 'PID scale'.
VALUE LABELS pidallw1 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.

RECODE
 partyidw3
  (1=1) (2=2) (3=3) (4 thru 9=4) (10=5) (9999=5) (else=99) INTO pidw3.
VARIABLE LABELS pidw3 'PID'.
VALUE LABELS pidw3 (1)Conservative (2)Labour (3)Liberal (4)Other (5)None (99)Missing.
EXECUTE .

RECODE
 pidwetheyw3
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw3a.
VARIABLE LABELS pidw3a 'PID - we versus they '.
VALUE LABELS pidw3a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcriticisepartyw3
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw3b.
VARIABLE LABELS pidw3b 'PID - criticism '.
VALUE LABELS pidw3b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcommonpartyw3
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw3c.
VARIABLE LABELS pidw3c 'PID - lot in common '.
VALUE LABELS pidw3c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidconnectedw3
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw3d.
VARIABLE LABELS pidw3d 'PID - connected'.
VALUE LABELS pidw3d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidpraisegoodw3
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw3e.
VARIABLE LABELS pidw3e 'PID - praise'.
VALUE LABELS pidw3e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE pidallw3=99.
EXECUTE.
DO IF pidw3a<99.
COMPUTE pidallw3 = (pidw3a+pidw3b+pidw3c+pidw3d+pidw3e)/5.
VARIABLE LABELS pidallw3 'PID scale'.
VALUE LABELS pidallw3 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.

RECODE
 partyidw4
  (1=1) (2=2) (3=3) (4 thru 9=4) (10=5) (9999=5) (else=99) INTO pidw4.
VARIABLE LABELS pidw4 'PID'.
VALUE LABELS pidw4 (1)Conservative (2)Labour (3)Liberal (4)Other (5)None (99)Missing.
EXECUTE .

RECODE
 pidwetheyw4
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw4a.
VARIABLE LABELS pidw4a 'PID - we versus they '.
VALUE LABELS pidw4a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcriticisepartyw4
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw4b.
VARIABLE LABELS pidw4b 'PID - criticism '.
VALUE LABELS pidw4b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcommonpartyw4
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw4c.
VARIABLE LABELS pidw4c 'PID - lot in common '.
VALUE LABELS pidw4c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidconnectedw4
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw4d.
VARIABLE LABELS pidw4d 'PID - connected'.
VALUE LABELS pidw4d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidpraisegoodw4
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw4e.
VARIABLE LABELS pidw4e 'PID - praise'.
VALUE LABELS pidw4e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE pidallw4=99.
EXECUTE.
DO IF pidw4a<99.
COMPUTE pidallw4 = (pidw4a+pidw4b+pidw4c+pidw4d+pidw4e)/5.
VARIABLE LABELS pidallw4 'PID scale'.
VALUE LABELS pidallw4 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.
 
RECODE
 euIDw7
  (1=1) (2=2) (3  thru 9999=3) (else=99) INTO euidenW7.
VARIABLE LABELS euidenW7 'EU identity'.
VALUE LABELS euidenw7 (1)Remain (2)Leave (3)Neither or DK (99)Missing.
EXECUTE .

RECODE
 euID1w7
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenW7a.
VARIABLE LABELS euidenW7a 'EU identity - we versus they '.
VALUE LABELS euidenw7a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID3w7
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenW7b.
VARIABLE LABELS euidenW7b 'EU identity - criticism'.
VALUE LABELS euidenw7b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID4w7
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenW7c.
VARIABLE LABELS euidenW7c 'EU identity - lot in common'.
VALUE LABELS euidenw7c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID6w7
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenW7d.
VARIABLE LABELS euidenW7d 'EU identity - connected'.
VALUE LABELS euidenw7d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID7w7
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenW7e.
VARIABLE LABELS euidenW7e 'EU identity - praise'.
VALUE LABELS euidenw7e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE euidallw7=99.
EXECUTE.
DO IF euidenw7a<99.
COMPUTE euidallW7 = (euidenW7a+euidenW7b+euidenw7c+euidenw7d+euidenw7e)/5.
VARIABLE LABELS euidallw7 'EU ID scale'.
VALUE LABELS euidallw7 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.

RECODE
 partyidw7
  (1=1) (2=2) (3=3) (4 thru 9=4) (10=5) (9999=5) (else=99) INTO pidw7.
VARIABLE LABELS pidw7 'PID'.
VALUE LABELS pidw7 (1)Conservative (2)Labour (3)Liberal (4)Other (5)None (99)Missing.
EXECUTE .

RECODE
 pidwetheyw7
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidW7a.
VARIABLE LABELS pidW7a 'PID - we versus they '.
VALUE LABELS pidw7a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcriticisepartyw7
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidW7b.
VARIABLE LABELS pidW7b 'PID - criticism '.
VALUE LABELS pidw7b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcommonpartyw7
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidW7c.
VARIABLE LABELS pidW7c 'PID - lot in common '.
VALUE LABELS pidw7c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidconnectedw7
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidW7d.
VARIABLE LABELS pidW7d 'PID - connected'.
VALUE LABELS pidw7d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidpraisegoodw7
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidW7e.
VARIABLE LABELS pidW7e 'PID - praise'.
VALUE LABELS pidw7e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE pidallw7=99.
EXECUTE.
DO IF pidw7a<99.
COMPUTE pidallW7 = (pidW7a+pidW7b+pidw7c+pidw7d+pidw7e)/5.
VARIABLE LABELS pidallw7 'PID scale'.
VALUE LABELS pidallw7 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.

RECODE
 euIDw8
  (1=1) (2=2) (3  thru 9999=3) (else=99) INTO euidenw8.
VARIABLE LABELS euidenw8 'EU identity'.
VALUE LABELS euidenw8 (1)Remain (2)Leave (3)Neither or DK (99)Missing.
EXECUTE .

RECODE
 euID1w8
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw8a.
VARIABLE LABELS euidenw8a 'EU identity - we versus they '.
VALUE LABELS euidenw8a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID3w8
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw8b.
VARIABLE LABELS euidenw8b 'EU identity - criticism'.
VALUE LABELS euidenw8b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID4w8
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw8c.
VARIABLE LABELS euidenw8c 'EU identity - lot in common'.
VALUE LABELS euidenw8c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID6w8
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw8d.
VARIABLE LABELS euidenw8d 'EU identity - connected'.
VALUE LABELS euidenw8d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID7w8
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw8e.
VARIABLE LABELS euidenw8e 'EU identity - praise'.
VALUE LABELS euidenw8e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE euidallw8=99.
EXECUTE.
DO IF euidenw8a<99.
COMPUTE euidallw8 = (euidenw8a+euidenw8b+euidenw8c+euidenw8d+euidenw8e)/5.
VARIABLE LABELS euidallw8 'EU ID scale'.
VALUE LABELS euidallw8 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.
 
RECODE
 euIDw9
  (1=1) (2=2) (3  thru 9999=3) (else=99) INTO euidenw9.
VARIABLE LABELS euidenw9 'EU identity'.
VALUE LABELS euidenw9 (1)Remain (2)Leave (3)Neither or DK (99)Missing.
EXECUTE .

RECODE
 euID1w9
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw9a.
VARIABLE LABELS euidenw9a 'EU identity - we versus they '.
VALUE LABELS euidenw9a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID3w9
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw9b.
VARIABLE LABELS euidenw9b 'EU identity - criticism'.
VALUE LABELS euidenw9b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID4w9
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw9c.
VARIABLE LABELS euidenw9c 'EU identity - lot in common'.
VALUE LABELS euidenw9c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID6w9
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw9d.
VARIABLE LABELS euidenw9d 'EU identity - connected'.
VALUE LABELS euidenw9d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID7w9
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw9e.
VARIABLE LABELS euidenw9e 'EU identity - praise'.
VALUE LABELS euidenw9e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE euidallw9=99.
EXECUTE.
DO IF euidenw9a<99.
COMPUTE euidallw9 = (euidenw9a+euidenw9b+euidenw9c+euidenw9d+euidenw9e)/5.
VARIABLE LABELS euidallw9 'EU ID scale'.
VALUE LABELS euidallw9 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.

RECODE
 partyidw9
  (1=1) (2=2) (3=3) (4 thru 9=4) (10=5) (9999=5) (else=99) INTO pidw9.
VARIABLE LABELS pidw9 'PID'.
VALUE LABELS pidw9 (1)Conservative (2)Labour (3)Liberal (4)Other (5)None (99)Missing.
EXECUTE .

RECODE
 pidwetheyw9
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw9a.
VARIABLE LABELS pidw9a 'PID - we versus they '.
VALUE LABELS pidw9a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcriticisepartyw9
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw9b.
VARIABLE LABELS pidw9b 'PID - criticism '.
VALUE LABELS pidw9b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcommonpartyw9
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw9c.
VARIABLE LABELS pidw9c 'PID - lot in common '.
VALUE LABELS pidw9c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidconnectedw9
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw9d.
VARIABLE LABELS pidw9d 'PID - connected'.
VALUE LABELS pidw9d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidpraisegoodw9
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw9e.
VARIABLE LABELS pidw9e 'PID - praise'.
VALUE LABELS pidw9e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE pidallw9=99.
EXECUTE.
DO IF pidw9a<99.
COMPUTE pidallw9 = (pidw9a+pidw9b+pidw9c+pidw9d+pidw9e)/5.
VARIABLE LABELS pidallw9 'PID scale'.
VALUE LABELS pidallw9 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.

RECODE
 euIDw10
  (1=1) (2=2) (3  thru 9999=3) (else=99) INTO euidenw10.
VARIABLE LABELS euidenw10 'EU identity'.
VALUE LABELS euidenw10 (1)Remain (2)Leave (3)Neither or DK (99)Missing.
EXECUTE .

RECODE
 euID1w10
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw10a.
VARIABLE LABELS euidenw10a 'EU identity - we versus they '.
VALUE LABELS euidenw10a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID3w10
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw10b.
VARIABLE LABELS euidenw10b 'EU identity - criticism'.
VALUE LABELS euidenw10b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID4w10
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw10c.
VARIABLE LABELS euidenw10c 'EU identity - lot in common'.
VALUE LABELS euidenw10c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID6w10
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw10d.
VARIABLE LABELS euidenw10d 'EU identity - connected'.
VALUE LABELS euidenw10d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID7w10
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw10e.
VARIABLE LABELS euidenw10e 'EU identity - praise'.
VALUE LABELS euidenw10e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE euidallw10=99.
EXECUTE.
DO IF euidenw10a<99.
COMPUTE euidallw10 = (euidenw10a+euidenw10b+euidenw10c+euidenw10d+euidenw10e)/5.
VARIABLE LABELS euidallw10 'EU ID scale'.
VALUE LABELS euidallw10 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.

RECODE
 partyidw10
  (1=1) (2=2) (3=3) (4 thru 9=4) (10=5) (9999=5) (else=99) INTO pidw10.
VARIABLE LABELS pidw10 'PID'.
VALUE LABELS pidw10 (1)Conservative (2)Labour (3)Liberal (4)Other (5)None (99)Missing.
EXECUTE .

RECODE
 pidwetheyw10
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw10a.
VARIABLE LABELS pidw10a 'PID - we versus they '.
VALUE LABELS pidw10a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcriticisepartyw10
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw10b.
VARIABLE LABELS pidw10b 'PID - criticism '.
VALUE LABELS pidw10b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcommonpartyw10
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw10c.
VARIABLE LABELS pidw10c 'PID - lot in common '.
VALUE LABELS pidw10c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidconnectedw10
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw10d.
VARIABLE LABELS pidw10d 'PID - connected'.
VALUE LABELS pidw10d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidpraisegoodw10
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw10e.
VARIABLE LABELS pidw10e 'PID - praise'.
VALUE LABELS pidw10e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE pidallw10=99.
EXECUTE.
DO IF pidw10a<99.
COMPUTE pidallw10 = (pidw10a+pidw10b+pidw10c+pidw10d+pidw10e)/5.
VARIABLE LABELS pidallw10 'PID scale'.
VALUE LABELS pidallw10 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.
 
RECODE
 euIDw11
  (1=1) (2=2) (3  thru 9999=3) (else=99) INTO euidenw11.
VARIABLE LABELS euidenw11 'EU identity'.
VALUE LABELS euidenw11 (1)Remain (2)Leave (3)Neither or DK (99)Missing.
EXECUTE .

RECODE
 euID1w11
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw11a.
VARIABLE LABELS euidenw11a 'EU identity - we versus they '.
VALUE LABELS euidenw11a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID3w11
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw11b.
VARIABLE LABELS euidenw11b 'EU identity - criticism'.
VALUE LABELS euidenw11b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID4w11
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw11c.
VARIABLE LABELS euidenw11c 'EU identity - lot in common'.
VALUE LABELS euidenw11c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID6w11
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw11d.
VARIABLE LABELS euidenw11d 'EU identity - connected'.
VALUE LABELS euidenw11d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID7w11
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw11e.
VARIABLE LABELS euidenw11e 'EU identity - praise'.
VALUE LABELS euidenw11e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE euidallw11=99.
EXECUTE.
DO IF euidenw11a<99.
COMPUTE euidallw11 = (euidenw11a+euidenw11b+euidenw11c+euidenw11d+euidenw11e)/5.
VARIABLE LABELS euidallw11 'EU ID scale'.
VALUE LABELS euidallw11 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.

RECODE
 partyidw11
  (1=1) (2=2) (3=3) (4 thru 9=4) (10=5) (9999=5) (else=99) INTO pidw11.
VARIABLE LABELS pidw11 'PID'.
VALUE LABELS pidw11 (1)Conservative (2)Labour (3)Liberal (4)Other (5)None (99)Missing.
EXECUTE .

RECODE
 pidwetheyw11
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw11a.
VARIABLE LABELS pidw11a 'PID - we versus they '.
VALUE LABELS pidw11a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcriticisepartyw11
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw11b.
VARIABLE LABELS pidw11b 'PID - criticism '.
VALUE LABELS pidw11b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcommonpartyw11
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw11c.
VARIABLE LABELS pidw11c 'PID - lot in common '.
VALUE LABELS pidw11c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidconnectedw11
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw11d.
VARIABLE LABELS pidw11d 'PID - connected'.
VALUE LABELS pidw11d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidpraisegoodw11
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw11e.
VARIABLE LABELS pidw11e 'PID - praise'.
VALUE LABELS pidw11e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE pidallw11=99.
EXECUTE.
DO IF pidw11a<99.
COMPUTE pidallw11 = (pidw11a+pidw11b+pidw11c+pidw11d+pidw11e)/5.
VARIABLE LABELS pidallw11 'PID scale'.
VALUE LABELS pidallw11 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.

RECODE
 euIDw12
  (1=1) (2=2) (3  thru 9999=3) (else=99) INTO euidenw12.
VARIABLE LABELS euidenw12 'EU identity'.
VALUE LABELS euidenw12 (1)Remain (2)Leave (3)Neither or DK (99)Missing.
EXECUTE .

RECODE
 euID1w12
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw12a.
VARIABLE LABELS euidenw12a 'EU identity - we versus they '.
VALUE LABELS euidenw12a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID3w12
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw12b.
VARIABLE LABELS euidenw12b 'EU identity - criticism'.
VALUE LABELS euidenw12b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID4w12
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw12c.
VARIABLE LABELS euidenw12c 'EU identity - lot in common'.
VALUE LABELS euidenw12c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID6w12
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw12d.
VARIABLE LABELS euidenw12d 'EU identity - connected'.
VALUE LABELS euidenw12d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID7w12
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw12e.
VARIABLE LABELS euidenw12e 'EU identity - praise'.
VALUE LABELS euidenw12e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE euidallw12=99.
EXECUTE.
DO IF euidenw12a<99.
COMPUTE euidallw12 = (euidenw12a+euidenw12b+euidenw12c+euidenw12d+euidenw12e)/5.
VARIABLE LABELS euidallw12 'EU ID scale'.
VALUE LABELS euidallw12 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.

RECODE
 euIDw13
  (1=1) (2=2) (3  thru 9999=3) (else=99) INTO euidenw13.
VARIABLE LABELS euidenw13 'EU identity'.
VALUE LABELS euidenw13 (1)Remain (2)Leave (3)Neither or DK (99)Missing.
EXECUTE .

RECODE
 euID1w13
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw13a.
VARIABLE LABELS euidenw13a 'EU identity - we versus they '.
VALUE LABELS euidenw13a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID3w13
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw13b.
VARIABLE LABELS euidenw13b 'EU identity - criticism'.
VALUE LABELS euidenw13b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID4w13
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw13c.
VARIABLE LABELS euidenw13c 'EU identity - lot in common'.
VALUE LABELS euidenw13c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID6w13
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw13d.
VARIABLE LABELS euidenw13d 'EU identity - connected'.
VALUE LABELS euidenw13d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 euID7w13
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO euidenw13e.
VARIABLE LABELS euidenw13e 'EU identity - praise'.
VALUE LABELS euidenw13e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE euidallw13=99.
EXECUTE.
DO IF euidenw13a<99.
COMPUTE euidallw13 = (euidenw13a+euidenw13b+euidenw13c+euidenw13d+euidenw13e)/5.
VARIABLE LABELS euidallw13 'EU ID scale'.
VALUE LABELS euidallw13 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.

RECODE
 partyidw13
  (1=1) (2=2) (3=3) (4 thru 9=4) (10=5) (9999=5) (else=99) INTO pidw13.
VARIABLE LABELS pidw13 'PID'.
VALUE LABELS pidw13 (1)Conservative (2)Labour (3)Liberal (4)Other (5)None (99)Missing.
EXECUTE .

RECODE
 pidwetheyw13
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw13a.
VARIABLE LABELS pidw13a 'PID - we versus they '.
VALUE LABELS pidw13a (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcriticisepartyw13
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw13b.
VARIABLE LABELS pidw13b 'PID - criticism '.
VALUE LABELS pidw13b (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidcommonpartyw13
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw13c.
VARIABLE LABELS pidw13c 'PID - lot in common '.
VALUE LABELS pidw13c (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidconnectedw13
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw13d.
VARIABLE LABELS pidw13d 'PID - connected'.
VALUE LABELS pidw13d (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .
RECODE
 pidpraisegoodw13
  (1 thru 2=copy) (9999=3) (3=4) (4=5) (else=99) INTO pidw13e.
VARIABLE LABELS pidw13e 'PID - praise'.
VALUE LABELS pidw13e (1)Strongly disagree (2)Disagree (3)DK (4)Agree (5)Strongly agree (99)Missing.
EXECUTE .

COMPUTE pidallw13=99.
EXECUTE.
DO IF pidw13a<99.
COMPUTE pidallw13 = (pidw13a+pidw13b+pidw13c+pidw13d+pidw13e)/5.
VARIABLE LABELS pidallw13 'PID scale'.
VALUE LABELS pidallw13 (1)Strongly disagree (5)Strongly agree (99)Missing.
END IF.
EXECUTE.
 
*TABLE 2

WEIGHT BY wt_new_w13.
MEANS TABLES=euidallw13 BY euidenw13
  /CELLS=MEAN COUNT SEMEAN.
MEANS TABLES=pidallw13 BY pidw13
  /CELLS=MEAN COUNT SEMEAN.

*FIGURE 1 

WEIGHT BY wt_new_W7.
FREQUENCIES VARIABLES=euIDenW7
  /ORDER=ANALYSIS.
WEIGHT BY wt_new_W8.
FREQUENCIES VARIABLES=euIDenW8
  /ORDER=ANALYSIS.
WEIGHT BY wt_new_W9.
FREQUENCIES VARIABLES=euIDenW9
  /ORDER=ANALYSIS.
WEIGHT BY wt_new_W10.
FREQUENCIES VARIABLES=euIDenW10
  /ORDER=ANALYSIS.
WEIGHT BY wt_new_W11.
FREQUENCIES VARIABLES=euIDenW11
  /ORDER=ANALYSIS.
WEIGHT BY wt_new_W12.
FREQUENCIES VARIABLES=euIDenW12
  /ORDER=ANALYSIS.
WEIGHT BY wt_new_W13.
FREQUENCIES VARIABLES=euIDenW13
  /ORDER=ANALYSIS.
WEIGHT BY wt_new_W14.
FREQUENCIES VARIABLES=euIDenW14
  /ORDER=ANALYSIS.
WEIGHT BY wt_new_W15.
FREQUENCIES VARIABLES=euIDenW15
  /ORDER=ANALYSIS.


*FOOTNOTE 10

WEIGHT BY wt_new_w13.
SORT CASES  BY euidenw13.
SPLIT FILE LAYERED BY euidenw13.
RELIABILITY
  /VARIABLES=euidenw13a euidenw13b euidenw13c euidenw13d euidenw13e 
  /SCALE('ALL VARIABLES') ALL
  /MODEL=ALPHA.

WEIGHT BY wt_new_w13.
SORT CASES  BY pidw13.
SPLIT FILE LAYERED BY pidw13.
RELIABILITY
  /VARIABLES= pidw13a pidw13b pidw13c pidw13d pidw13e
  /SCALE('ALL VARIABLES') ALL
  /MODEL=ALPHA.
SPLIT FILE OFF.

* TABLE A2

RECODE
  euidenw13
  (2=1) (1=3) (3=2) (else=99) INTO EUid13predict .
VARIABLE LABELS EUid13predict 'EU ID w13'.
VALUE LABELS EUid13predict (1)Leave (2)Neither (3)Remain (99)Missing.
EXECUTE .

RECODE
  pidw13
  (1=1) (2=3) (3 thru 5=2) (else=99) INTO PID13predict .
VARIABLE LABELS PID13predict 'PID w13'.
VALUE LABELS PID13predict (1)Con (2)Neither (3)Lab (99)Missing.
EXECUTE .

RECODE
  agew13
  (18 thru 25=1) (26 thru 30=2) (31 thru 35=3) (36 thru 40=4) (41 thru 45=5) (46 thru 50=6) (51 thru 55=7) (56 thru 60=8) (61 thru 65=9) (66 thru 70=10) (71 thru 75=11) (76 thru 100=12) (else=99) INTO agegrp5 .
  VARIABLE LABELS agegrp5 'Age group, in 5s'.
VALUE LABELS agegrp5 (1)18-25 (2)26-30 (3)31-35 (4)36-40 (5)41-45 (6)46-50 (7)51-55 (8)56-60 (9)61-65 (10)66-70 (11)71-75 (12)76+ (99)Missing.
EXECUTE .

*Region.
RECODE
  gor
  (1=3) (2=4) (3=5) (4=6) (5=7) (6=9) (7=10) (8=11) (9=8) (10=2) (11=1) (12 thru 13=99) INTO regioncomb .
VARIABLE LABELS regioncomb 'Region combined from 74 onwards'.
VALUE LABELS regioncomb (1)Scotland (2)Wales (3)NE (4)NW (5)Yorkshire (6)East Midlands (7)West Midlands (8)SW (9)East (10)London (11)SE (99)Missing.
EXECUTE . 

RECODE
  regioncomb
  (1=1) (2 thru 11=2) (else=99) INTO regioncomb2 .
VARIABLE LABELS regioncomb2 'Region combined from 74 onwards'.
VALUE LABELS regioncomb2 (1)Scotland (2)England and Wales (99)Missing.
EXECUTE . 

*House type

RECODE
  housing
  (1=5) (2=4) (3=4) (4=2) (5 thru 6=1) (7=2) (8 thru 9=3) (else=99) INTO house3 .
VARIABLE LABELS house3 'Housing type - reduced'.
VALUE LABELS house3 (1)Council or HA (2)Private rent (3)Other (4)Mortgage (5)Own (99)Missing.
EXECUTE .
RECODE
profile_house_tenure
  (1=5) (2=4) (3=4) (4=2) (5 thru 6=1) (7=2) (8 thru 9=3) INTO house3 .
EXECUTE .
RECODE
  profile_house_tenureW11
  (1=5) (2=4) (3=4) (4=2) (5 thru 6=1) (7=2) (8 thru 9=3) INTO house3 .
EXECUTE .
  RECODE
  profile_house_tenureW12
  (1=5) (2=4) (3=4) (4=2) (5 thru 6=1) (7=2) (8 thru 9=3) INTO house3 .
EXECUTE .
  RECODE
  profile_house_tenureW13
  (1=5) (2=4) (3=4) (4=2) (5 thru 6=1) (7=2) (8 thru 9=3) INTO house3 .
EXECUTE .

*Subjective class

*Race.

RECODE
profile_ethnicity
  (1 thru 2=5) (3 thru 6=4) (5=3) (6=5) (7 thru 9=2) (10=3) (11 thru 13=1) (14=3) (15 thru 16=4) (else=99) INTO racecomb1.
VARIABLE LABELS racecomb1 'Race combined'.
VALUE LABELS racecomb1 (1)Black (2)Asian ISC (3)Asian C (4)Mixed or other (5)White (99)Missing.
EXECUTE .
RECODE
profile_ethnicityW11
  (1 thru 2=5) (3 thru 6=4) (5=3) (6=5) (7 thru 9=2) (10=3) (11 thru 13=1) (14=3) (15 thru 16=4) INTO racecomb1.
EXECUTE .
RECODE
profile_ethnicityW12
  (1 thru 2=5) (3 thru 6=4) (5=3) (6=5) (7 thru 9=2) (10=3) (11 thru 13=1) (14=3) (15 thru 16=4) INTO racecomb1.
EXECUTE .
RECODE
profile_ethnicityW13
  (1 thru 2=5) (3 thru 6=4) (5=3) (6=5) (7 thru 9=2) (10=3) (11 thru 13=1) (14=3) (15 thru 16=4) INTO racecomb1.
EXECUTE .

RECODE
racecomb1
  (1 thru 4=1) (5=2) (else=99) INTO racecomb2.
VARIABLE LABELS racecomb2 'Race combined 2'.
VALUE LABELS racecomb2 (1)Non-white (2)White (99)Missing.
EXECUTE .


*Education

RECODE
  educationW12
  (17=0) (16=1) (13 thru 15=2) (18=2) (11 thru 12=3) (9 thru 10=4) (8=5) (6 thru 7=4) (3 thru 5=6) (1 thru 2=7) (19=7) (else=99) INTO qual1 .
VARIABLE LABELS qual1 'Highest qualification'.
VALUE LABELS qual1 (0)Higher degree (1)Degree (2)Teacher or nursing (3)A-level (4)O-level (5)CSE (6)Apprenticeship (7)None (99)Missing.
EXECUTE .
DO IF educationW12=18.
 RECODE
  profile_education_age
  (1 thru 2=6) (3=3) INTO qual1 .
END IF.
EXECUTE.
DO IF educationW12=18.
 RECODE
  anyuniw13
  (3=1) INTO qual1 .
END IF.
EXECUTE.

RECODE
  qual1
  (17=0) (16=1) (13 thru 15=2) (18=2) (11 thru 12=3) (9 thru 10=4) (8=5) (6 thru 7=4) (3 thru 5=6) (1 thru 2=7) (19=7) (else=99) INTO qual1 .
VARIABLE LABELS qual1 'Highest qualification'.
VALUE LABELS qual1 (0)Higher degree (1)Degree (2)Teacher or nursing (3)A-level (4)O-level (5)CSE (6)Apprenticeship (7)None (99)Missing.
EXECUTE .

RECODE
  educationW13
  (17=0) (16=1) (13 thru 15=2) (18=2) (11 thru 12=3) (9 thru 10=4) (8=5) (6 thru 7=4) (3 thru 5=6) (1 thru 2=7) (19=7) INTO qual1 .
VARIABLE LABELS qual1 'Highest qualification'.
VALUE LABELS qual1 (0)Higher degree (1)Degree (2)Teacher or nursing (3)A-level (4)O-level (5)CSE (6)Apprenticeship (7)None (99)Missing.
EXECUTE .
DO IF educationW13=18.
 RECODE
  profile_education_age
  (1 thru 2=6) (3=3) INTO qual1 .
END IF.
EXECUTE.
DO IF educationW13=18.
 RECODE
  anyuniw13
  (3=1) INTO qual1 .
END IF.
EXECUTE.

RECODE
  qual1
  (0 thru 1=1) (2 thru 3=2) (4=3) (5 thru 7=4) (else=99) INTO qual2 .
VARIABLE LABELS qual2 'Highest qualification'.
VALUE LABELS qual3 (1)Degree (2)A-Level (3)O-level (4)Less than O-level (99)Missing.
EXECUTE .



*Religion

RECODE
   profile_religion
  (1=1) (2=6) (3=5) (4=3) (5 thru 9=4) (10 thru 15=2) (16=1) (17 thru 19=4) (else=99) INTO relig1.
VARIABLE LABELS relig1 'Religion'.
VALUE LABELS relig1 (0)Christian (1)None (2)Not Xian (3)CoS (4)Non-conformist (5)Catholic (6)Anglican (99)Missing.
EXECUTE .
RECODE
   profile_religionW10
  (1=1) (2=6) (3=5) (4=3) (5 thru 9=4) (10 thru 15=2) (16=1) (17 thru 19=4) INTO relig1.
EXECUTE .
   RECODE
   profile_religionW11
  (1=1) (2=6) (3=5) (4=3) (5 thru 9=4) (10 thru 15=2) (16=1) (17 thru 19=4) INTO relig1.
EXECUTE .
RECODE
   profile_religionW12
  (1=1) (2=6) (3=5) (4=3) (5 thru 9=4) (10 thru 15=2) (16=1) (17 thru 19=4) INTO relig1.
EXECUTE .
RECODE
   profile_religionW13
  (1=1) (2=6) (3=5) (4=3) (5 thru 9=4) (10 thru 15=2) (16=1) (17 thru 19=4) INTO relig1.
EXECUTE .


RECODE
   gender
  (1=1) (2=0) (else=99) INTO sex.
VARIABLE LABELS sex 'Sex'.
VALUE LABELS sex (0)Woman (1)Man (99)Missing.
EXECUTE .

RECODE
   profile_gross_householdW10
  (1 thru 3=1) (4 thru 5=2) (6 thru 7=3) (8 thru 10=4) (11 thru 15=5) (16 thru 98=0) (else=99) INTO income.
VARIABLE LABELS income 'Income'.
VALUE LABELS income (1)First quintile (2)Secodn quintile (3)Third quintile (4)Fourth quintile (5)Top quintile (0)DK etc (99)Missing.
EXECUTE .
RECODE
   profile_gross_householdW11
  (1 thru 3=1) (4 thru 5=2) (6 thru 7=3) (8 thru 10=4) (11 thru 15=5) (16 thru 98=0) INTO income.
EXECUTE .
RECODE
   profile_gross_householdW12
  (1 thru 3=1) (4 thru 5=2) (6 thru 7=3) (8 thru 10=4) (11 thru 15=5) (16 thru 98=0) INTO income.
EXECUTE .
RECODE
   profile_gross_householdW13
  (1 thru 3=1) (4 thru 5=2) (6 thru 7=3) (8 thru 10=4) (11 thru 15=5) (16 thru 98=0) INTO income.
EXECUTE .

RECODE
 ns_secW1W2W3W4W5
  (10=11) (20=1) (31=3) (32=4) (33 thru 34=13) (41=4) (42=5) (43=13) (44=12) (50=2) (60=4) (71 thru 72=5) (73=4) (74=8) (81=11) (82=14) (91=12) (92=14) (100=7) (111=8) (112=9) (121=5) 
  (122=9) (123=8) (124=9) (125=15) (126=5) (127=6) (131=6) (132=9) (133=8) (134=10) (135=15) (else=99) INTO segr1 .
VALUE LABELS segr1 (1)Manager large (2)Manager small (3)Professional (4)Intermediate NM (5)Junior NM (6)Personal service (7)Foreman (8)Skilled manual
                                 (9)Semi skilled manual (10)Unskilled manual (11)Self employed big (12)Self employed small (13)SE professional (14)Farmers (15)Farm workers (99)Missing.
EXECUTE .
RECODE
 ns_secW6W7W8W9
  (10=11) (20=1) (31=3) (32=4) (33 thru 34=13) (41=4) (42=5) (43=13) (44=12) (50=2) (60=4) (71 thru 72=5) (73=4) (74=8) (81=11) (82=14) (91=12) (92=14) (100=7) (111=8) (112=9) (121=5) 
  (122=9) (123=8) (124=9) (125=15) (126=5) (127=6) (131=6) (132=9) (133=8) (134=10) (135=15) INTO segr1 .
VALUE LABELS segr1 (1)Manager large (2)Manager small (3)Professional (4)Intermediate NM (5)Junior NM (6)Personal service (7)Foreman (8)Skilled manual
                                 (9)Semi skilled manual (10)Unskilled manual (11)Self employed big (12)Self employed small (13)SE professional (14)Farmers (15)Farm workers (99)Missing.
EXECUTE .

RECODE
  SEGr1
  (1 thru 2=2) (3=3) (4=4) (5=5) (6=7) (7=8) (8=9) (9 thru 10=10) (11=1) (12=6) (13 thru 14=1) (15=10) (else=99) INTO SEGcls1 .
VARIABLE LABELS SEGcls1 'SEG reduced to 10 classes'.
VALUE LABELS SEGcls1 (1)Employers, farmers and SE Pro (2)Managers (3)Professionals (4)Intermediate NM (5)Junior NM (6)Own account (7)Personal service (8)Foreman (9)Skilled manual
                                 (10)Semi and unskilled manual (99)Missing.
EXECUTE .

RECODE
  SEGcls1
 (1 thru 8=copy) (9 thru 10=9) (else=99) INTO SEGcls2 .
VARIABLE LABELS SEGcls2 'SEG reduced to 9 classes'.
VALUE LABELS SEGcls2 (1)Employers, farmers and SE Pro (2)Managers (3)Professionals (4)Intermediate NM (5)Junior NM (6)Own account (7)Personal service (8)Foreman (9)Manual (99)Missing.
EXECUTE .
RECODE
  SEGcls2
 (1 thru 2=1) (3 thru 4=2) (5=3) (6=4) (7=5) (8=6) (9=7) (else=0) INTO SEGcls3 .
VARIABLE LABELS SEGcls3 'SEG reduced to 7 classes'.
VALUE LABELS SEGcls3 (1)Old middle class (2)New middle class (3)Junior NM (4)Own account (5)Personal service (6)Foreman (7)Manual (0)Missing.
EXECUTE .

WEIGHT BY wt_new_w13.

NOMREG euid13predict (BASE=LAST ORDER=ASCENDING) BY agegrp5 regioncomb house3 racecomb1 qual1 relig1 sex income SEGcls3
  /CRITERIA CIN(95) DELTA(0) MXITER(100) MXSTEP(5) CHKSEP(20) LCONVERGE(0) PCONVERGE(0.000001) 
    SINGULAR(0.00000001)
  /MODEL=agegrp5 regioncomb house3 racecomb1 qual1 relig1 sex income SEGcls3 
  /STEPWISE=PIN(.05) POUT(0.1) MINEFFECT(0) RULE(SINGLE) ENTRYMETHOD(LR) REMOVALMETHOD(LR)
  /INTERCEPT=INCLUDE
  /PRINT=PARAMETER SUMMARY LRT CPS STEP MFI.

NOMREG euid13predict (BASE=LAST ORDER=ASCENDING) BY regioncomb2 racecomb2 qual2 relig1 sex income SEGcls3 WITH agew13 britishnessW13
  /CRITERIA CIN(95) DELTA(0) MXITER(100) MXSTEP(5) CHKSEP(20) LCONVERGE(0) PCONVERGE(0.000001) 
    SINGULAR(0.00000001)
  /MODEL=agew13 regioncomb2 racecomb2 qual2 relig1 sex income SEGcls3 britishnessW13
  /STEPWISE=PIN(.05) POUT(0.1) MINEFFECT(0) RULE(SINGLE) ENTRYMETHOD(LR) REMOVALMETHOD(LR)
  /INTERCEPT=INCLUDE
  /PRINT=PARAMETER SUMMARY LRT CPS STEP MFI.


NOMREG PID13predict (BASE=LAST ORDER=ASCENDING) BY agegrp5 regioncomb house3 racecomb1 qual1 relig1 sex income SEGcls3
  /CRITERIA CIN(95) DELTA(0) MXITER(100) MXSTEP(5) CHKSEP(20) LCONVERGE(0) PCONVERGE(0.000001) 
    SINGULAR(0.00000001)
  /MODEL=agegrp5 regioncomb house3 racecomb1 qual1 relig1 sex income SEGcls3 
  /STEPWISE=PIN(.05) POUT(0.1) MINEFFECT(0) RULE(SINGLE) ENTRYMETHOD(LR) REMOVALMETHOD(LR)
  /INTERCEPT=INCLUDE
  /PRINT=PARAMETER SUMMARY LRT CPS STEP MFI.


*APPENDIX 4

RECODE
  pidw13
 (1 thru 3=copy) (4=3) (5=4) (else=99) INTO pidw13red .
VARIABLE LABELS pidw13red 'PID'.
VALUE LABELS pidw13red (1)Con (2)Lab (3)Other (4)None (99)Missing.
EXECUTE .

WEIGHT BY wt_new_w13.

UNIANOVA econgenRetroW13 BY euidenw13 pidw13red WITH britishnessW13
  /METHOD=SSTYPE(3)
  /INTERCEPT=INCLUDE
  /PRINT PARAMETER
  /CRITERIA=ALPHA(.05)
  /DESIGN=euidenw13 pidw13red britishnessW13.



